<!--
 * @Descripttion: 下拉菜单列表子项
 * @Author: armin
 * @Date: 2021-07-16 14:51:15
 * @LastEditors: armin
 * @LastEditTime: 2021-09-09 11:21:56
-->
<template>
  <li class="dropdown-option" :class="{'is-disabled':disabled}">
    <slot></slot>
  </li>
</template>

<script lang="ts">
import { defineComponent } from 'vue'

export default defineComponent({
  props: {
    // 控制菜单项可选与不可选
    disabled: {
      type: Boolean,
      default: false
    }
  },
  setup () {
    return {}
  }
})
</script>

<style>
.dropdown-option.is-disabled * {
    color: #6c757d;
    pointer-events: none;
    background-color: transparent;
}
</style>
